home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH8 / 8-1-1.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1998-09-18  |  1.3 KB  |  46 lines

  1. VERSION 5.00
  2. Begin VB.Form frm8_1_1 
  3.    Caption         =   "8-1-1"
  4.    ClientHeight    =   1005
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   2310
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   1005
  20.    ScaleWidth      =   2310
  21.    Begin VB.CommandButton cmdCreateFile 
  22.       Caption         =   "Create File"
  23.       Height          =   495
  24.       Left            =   480
  25.       TabIndex        =   0
  26.       Top             =   240
  27.       Width           =   1335
  28.    End
  29. Attribute VB_Name = "frm8_1_1"
  30. Attribute VB_GlobalNameSpace = False
  31. Attribute VB_Creatable = False
  32. Attribute VB_PredeclaredId = True
  33. Attribute VB_Exposed = False
  34. Private Sub cmdCreateFile_Click()
  35.   Dim name1 As String, name2 As String
  36.   'Demonstrate use of Write # statement
  37.   Open App.Path & "\PIONEER.TXT" For Output As #1
  38.   Write #1, "ENIAC"
  39.   Write #1, 1946
  40.   Write #1, "ENIAC", 1946
  41.   name1 = "Eckert"
  42.   name2 = "Mauchly"
  43.   Write #1, 14 * 139, "J.P. " & name1, name2, "John"
  44.   Close #1
  45. End Sub
  46.